package com.itheima.tcp1;

import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;

/**
 * @author Anomaly
 * @date 2023/2/11 15:10
 */
public class Client {
    public static void main(String[] args) throws IOException {
        System.out.println("==============客户端启动=================");
        Socket socket = new Socket("127.0.0.1", 7777);
        PrintStream ps = new PrintStream(socket.getOutputStream());
        ps.println("T1第一，JDG第三！外媒盘点全球战队排名，WE让人意外");
        ps.flush();
    }
}
